<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'assetType?.label', default: 'assetType')}"/>
    <title>编辑资产类型信息</title>
</head>

<body class="fixed-navbar fixed-sidebar">
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>Next CRM</li>
                    <li><g:link controller="assetType" action="index">资产类型信息</g:link></li>
                    <li class="active">
                        <span>编辑资产类型信息</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">编辑资产类型信息</h2>
        </div>
    </div>
</div>

<div class="content animate-panel">
    <div class="row">
        <g:if test="${flash.message}">
            <div class="message alert alert-info" role="status">${flash.message}
                <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                        aria-hidden="true">×</span></button>
            </div>
        </g:if>
        <g:hasErrors bean="${this.assetType}">
            <ul class="errors" role="alert">
                <g:eachError bean="${this.assetType}" var="error">
                    <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                            error="${error}"/></li>
                </g:eachError>
            </ul>
        </g:hasErrors>
        <div class="hpanel hblue">
            <div class="panel-heading">
                编辑资产类型信息
            </div>

            <div class="panel-body">

                <g:form resource="${this.assetType}" action="update" class="form-horizontal">
                    <div class="form-group row">
                        <label class="col-md-3 control-label">名称</label>

                        <div class="col-md-4">
                            <g:textField class="form-control" name="name" id="name" value="${this.assetType?.name}"/>
                        </div>

                    </div>

                    <div class="hr-line-dashed"></div>
                    <div class="form-group row">
                        <div class="col-md-7">
                            <g:submitButton class="btn btn-info" name="update" value="保存"/>
                        </div>
                    </div>
                </g:form>
            </div>

        </div>
    </div>
</div>
</body>
</html>
